package masapay.uploadExpressList;

public class UploadExpressListProxy implements masapay.uploadExpressList.UploadExpressList_PortType {
  private String _endpoint = null;
  private masapay.uploadExpressList.UploadExpressList_PortType uploadExpressList_PortType = null;
  
  public UploadExpressListProxy() {
    _initUploadExpressListProxy();
  }
  
  public UploadExpressListProxy(String endpoint) {
    _endpoint = endpoint;
    _initUploadExpressListProxy();
  }
  
  private void _initUploadExpressListProxy() {
    try {
      uploadExpressList_PortType = (new masapay.uploadExpressList.UploadExpressList_ServiceLocator()).getUploadExpressListImplPort();
      if (uploadExpressList_PortType != null) {
        if (_endpoint != null)
          ((javax.xml.rpc.Stub)uploadExpressList_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
        else
          _endpoint = (String)((javax.xml.rpc.Stub)uploadExpressList_PortType)._getProperty("javax.xml.rpc.service.endpoint.address");
      }
      
    }
    catch (javax.xml.rpc.ServiceException serviceException) {}
  }
  
  public String getEndpoint() {
    return _endpoint;
  }
  
  public void setEndpoint(String endpoint) {
    _endpoint = endpoint;
    if (uploadExpressList_PortType != null)
      ((javax.xml.rpc.Stub)uploadExpressList_PortType)._setProperty("javax.xml.rpc.service.endpoint.address", _endpoint);
    
  }
  
  public masapay.uploadExpressList.UploadExpressList_PortType getUploadExpressList_PortType() {
    if (uploadExpressList_PortType == null)
      _initUploadExpressListProxy();
    return uploadExpressList_PortType;
  }
  
  public masapay.uploadExpressList.UploadExpressListResDTO uploadExpressList(masapay.uploadExpressList.UploadExpressListDTO uploadExpressListDTO) throws java.rmi.RemoteException{
    if (uploadExpressList_PortType == null)
      _initUploadExpressListProxy();
    return uploadExpressList_PortType.uploadExpressList(uploadExpressListDTO);
  }
  
  
}